<?php 
require_once '../include.php';
$id=$_REQUEST['id'];
$cateRows=findConCateByCid($id);
$row=findConsultById($id);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>edit ConCate</title>
 <link rel="stylesheet" href="styles/backstage.css">
</head>
<body>
<br/>
<h3>修改资讯</h3>
<br/>
<form action="doAdminAction.php?act=editConsult&id=<?php echo $id;?>" method="post">
<table  cellpadding="5" cellspacing="0" class="table">
	<tr>
		<th align="right">资讯分类名称</th>
		<td>
			<select name="cId" class="bui_select select">
			<?php foreach($cateRows as $cateRow):?>
				<option value="<?php echo $cateRow['cId'];?>" <?php echo $row['cId']==$cateRow['cId']?"selected='selected'":null;?>><?php echo $cateRow['cName'];?></option>
			<?php endforeach;?>
			</select>
		</td>
	</tr>

	<tr>
		<th align="right">标题</th>
		<td><input type="text" name="title" class="search" placeholder="<?php echo $row['title'];?>" value="<?php echo $row['title'];?>"/></td>
	</tr>

	<tr>
		<th align="right">内容</th>
		<td>
			<textarea style="background-color: #E8E8E8;width:700px;height:150px;" name="content" id="content" placeholder="<?php echo $row['content'];?>" >
			<?php echo $row['content'];?>
			</textarea>
		</td>
	</tr>

	<tr>
		<th align="right">作者</th>
		<td><input type="text" name="author" class="search" placeholder="<?php echo $row['author'];?>" value="<?php echo $row['author'];?>"/></td>
	</tr>

	<tr>
		<td colspan="2" align="center"><input type="submit" class="btn"  value="修改分类"/></td>
	</tr>

</table>
</form>
</body>
</html>